package com.hmdp.config;/**
 * @Author 董熠涛
 * @Date 2025/4/15  0:37
 */

import com.hmdp.interceptor.loginInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author:董熠涛
 * @ 2025/4/150:37
 */
public class loginInterceptorConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new loginInterceptor())
                .excludePathPatterns("/user/code","/user/login");
    }
}
